package demo3;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Mouse mouse = new Mouse();
        computer.powerOn();

        computer.useDevice(mouse);//需要传参

        computer.powerOff();
    }
}
